[XM] Fix rmlabel filename assignment
authorAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 10:24:48 +0000 (11:24 +0100)
committerAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 10:24:48 +0000 (11:24 +0100)
The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xm/rmlabel.py

index 6a29a8c20e5a35c3a4bf9e57d30393f084602fca..0869c6c874a0cf1e36e87e32188c307f6938e6fc 100644 (file)
@@ -60,7 +60,8 @@ def rm_domain_label(configfile):
     fd = None
     file = None
     if configfile[0] == '/':
-        fd = open(configfile, "rb")
+        file = configfile
+        fd = open(file, "rb")
     else:
         for prefix in [".", "/etc/xen"]:
             file = prefix + "/" + configfile